package com.ielts;

public final class IeltsConstant {
	/* Google Analystic */
	public static final String TRACKING_ID = "UA-50637567-1";
	/* Google GCM */
	public static final String SENDER_ID = "879194783664";
	/* Facebook KeyHash */
	public static final String KEYHASH_1 = "wg38ErsyLrqIEM9lYjBvXFo8rnI=";
	public static final String KEYHASH_2 = "7K5JkwVE5nQ+bDnfe5XUio+nxlY=";
	public static final String KEYHASH_DEBUG = "BZENdTY/p0bItD2rwSD9Oi8S4Bg=";
	public static final String KEYHASH_HELLOTAB = "Im7ho7KPfQvgOf12pgvtum7gJ0I=";
	
	
	public static enum PAGE {
		ALL, BUYED, ACCOUNT, FANPAGE, HELP;
		public static int getPage(PAGE page) {
			switch (page) {
			case ALL:
				return 0;
			case BUYED:
				return 1;
			case ACCOUNT:
				return 2;
			case FANPAGE:
				return 3;
			case HELP:
				return 4;
			}
			return -1;
		}
		public static PAGE getPage(int index){
			switch (index) {
			case 0:
				return PAGE.ALL;
			case 1:
				return PAGE.BUYED;
			case 2:
				return PAGE.ACCOUNT;
			case 3:
				return PAGE.FANPAGE;
			case 4:
				return PAGE.HELP;
			}
			return PAGE.ALL;
		}
	}
	
	public static final int GET_GUILD_FROM_SERVER =  1;
	public static final int GET_ALL_TOPICS_FROM_SERVER =  2;
	public static final int GET_BOUGHT_TOPICS_FROM_SERVER =  3;
	public static final int REGISTER_USER = 4;
	public static final int GET_BUY_TOPIC = 5;
	public static final int GET_BUY_TOPIC_10 = 6;
	public static final int GET_BUY_TOPIC_YEAR = 7;
	public static final int GET_BALANCE = 8;
	public static final int REFRESH_DATA = 9;
	public static final int LOAD_DONE = 10;
	public static final int GET_GCM = 11;
	
	public static final String KEY_YEAR = "year";
	public static final String KEY_YEAR_DEF = "2014";
	
	public static final String KEY_USER_ID = "user_id";
	public static final String KEY_USER_ID_DEF = "-1";
	
	public static final String KEY_USER_NAME = "fb_name";
	public static final String KEY_USER_NAME_DEF = "unknown";
	
	public static final String KEY_USER_EMAIL = "fb_email";
	public static final String KEY_USER_EMAIL_DEF = "unknown";
	
	public static final String KEY_USER_BALANCE = "user.balance";
	public static final String KEY_USER_BALANCE_DEF = "0";
	
	public static final String KEY_USER_BUY_QTY = "user.buyqty";
	public static final String KEY_USER_BUY_QTY_DEF = "0";
	
	public static final String KEY_USER_REMAIN = "user.remainQty";
	public static final String KEY_USER_REMAIN_DEF = "0";
	
	public static final String KEY_USER_AVATAR = "user_avatar";
	public static final String KEY_USER_AVATAR_DEF = "";
	
	public static final String KEY_FB_LINK_ID = "fb_link";
	public static final String KEY_FB_LINK_DEF = "-1";
	
	public static final String KEY_FB_USER_ID = "fb_id";
	public static final String KEY_FB_USER_DEF = "-1";
	
	public static final String KEY_GCM_ID = "gcm_id";
	public static final String KEY_GCM_ID_DEF = "-1";
}
